package Fiying;

import OlympicGames.Test;

public class Test2 extends  Flyer{
    public void way1(Way1 way1){
        way1.sup();
    }
    public void way2(Way2 way2){
        way2.wing();
    }
    public void way3(Way3 way3){
        way3.wingarea();
    }
    public static void main(String[]args){
        Test2 superman=new Test2();
        superman.way1(new Flyman());
        superman.introd("超人",18);
        Test2 bird=new Test2();
        bird.way2(new Flybird());
        bird.introd("鸟",3);
        Test2 plan=new Test2();
        plan.way3(new FlyPlane());
        plan.introd("飞机",30);

    }
}
